/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.chain.declaracoes;

import br.com.Abstracts.AbstractTratadorLexicoToken;
import br.com.chain.id.TratadorId;
import br.com.model.Token;

/**
 *
 * @author mariorsjr
 */
public class DeclaracaoVariavel extends AbstractTratadorLexicoToken{

    @Override
    public void isValido(Token token) {
        if("var".equals(token.getLexema().toLowerCase())){
            token.setToken("Declaração Variável");
        }
        else if(this.sucessor == null){
            this.setProximoConjunto(new TratadorId());
            this.sucessor.tratador(token);
        }
    }
    
}
